package login

import (
	"appService/src/application/app/authGroup"
	"appService/src/authValid/dataAuth"
	"appService/src/global/router"
)
// 返回路由切片
func GetRouterList() []*router.Router {
	return routeMap
}

//路由数组
var routeMap []*router.Router = []*router.Router{
	// login-------------
	{
		Title:       "登陆—手动登陆",
		AuthGroupId: authGroup.SHARE_ID,
		Router:      "/login",
		Method:      router.POST,
		Visit:       dataAuth.PUBLIC,
		Object:      &Login{},
		Func:        "Login",
	},
	{
		Title:       "登陆—自动登陆",
		AuthGroupId: authGroup.SHARE_ID,
		Router:      "/login",
		Method:      router.GET,
		Visit:       dataAuth.LOGIN,
		Object:      &Login{},
		Func:        "GetLoginUserInfo",
	},
	{
		Title:       "登陆—安全退出",
		AuthGroupId: authGroup.SHARE_ID,
		Router:      "/login",
		Method:      router.DELETE,
		Visit:       dataAuth.LOGIN,
		Object:      &Login{},
		Func:        "OutLogin",
	},
}
